Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added css variables for breakpoints #36095

Merged
merged 1 commit into from
Oct 3, 2022
Merged

Added css variables for breakpoints #36095

merged 1 commit into from
Oct 3, 2022

Conversation

shaack
Copy link
Contributor

@shaack shaack commented Mar 31, 2022

See Issue #36094 "css variables for breakpoints are missing in Bootstrap 5".

The css variables for the breakpoints have been missing. I just added them in scss/_root.scss.

Without them I have no idea how to detect the current breakpoint from JavaScript, like I do in my detection script bootstrap-detect-breakpoint which works with BS 4 but not with BS 5 because of the missing css variables.

Furthermore this should be present according to the documentation: "[...]we include our grid breakpoints as CSS variables[...]".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants